package com.yu.work.domain;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * 一条记录
 * 抽号记录的实体类
 */
@Table(name = "record")
public class Record implements Serializable {

    //主键
    @Column(name = "id", isId = true)
    private Long id;

    //抽到的号数
    @Column(name = "target_number")
    private Long targetNumber;

    //备注
    @Column(name = "remark")
    private String remark;

    //创建时间
    @Column(name = "create_time")
    private Date createTime;

    //修改时间
    @Column(name = "update_time")
    private Date updateTime;

    public Record() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTargetNumber() {
        return targetNumber;
    }

    public void setTargetNumber(Long targetNumber) {
        this.targetNumber = targetNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", targetNumber=" + targetNumber +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
